<template>
	<view class="" style="width: 100%;padding-left: 15rpx; box-sizing: border-box;">
		<rich-text type="text" :nodes="constent"></rich-text>
		<view class="" style="height: 150rpx;"></view>
	</view>
</template>

<script>
	var graceRichText = require("../../static/richText.js");
	import {
		getConfig
	} from "@/api/api.js"
	export default {
		data() {
			return {
				constent: "",
			}
		},
		onLoad() {
			this.handlegetsettings()
		},

		methods: {

			async handlegetsettings() {
				let res = await getConfig()
				// console.log("用户协议", res)
				this.constent = graceRichText.format(res.data[0].value)
			},
			handleTy() {
				uni.setStorageSync('userxieyi', true)
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.bottomContent {
		width: 100%;
		background: #FFFFFF;
		position: fixed;
		bottom: 0;
		padding: 41rpx 30rpx;
		box-sizing: border-box;
		padding-bottom: constant(safe-area-inset-bottom);
		/* 兼容 iOS 设备 */
		padding-bottom: env(safe-area-inset-bottom);

		.btn {
			width: 686rpx;
			height: 88rpx;
			background: darkgray;
			font-size: 38rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
			border-radius: 88rpx;
		}

		.btns {
			background: linear-gradient(136deg, #359691 0%, #359691 100%);
		}
	}
</style>